Topic: DMD0358 EIPMSG - Send EtherNet/IP Message |
|
|
|
The Send EtherNet/IP Message (EIPMSG) instruction implements an Explicit Unconnected EtherNet/IP Client An explicit unconnected message client initiates request/response oriented communications with other devices. Message rates and latency requirements are typically not too demanding. Examples of explicit message clients are HMI devices, programming tools, or PC-based applications that gather data from control devices. using the on-board Ethernet port of a Do-more CPU. An explicit message client initiates request / response oriented communications with EtherNet/IP servers. Message rates and latency requirements should not be too demanding. Examples of other explicit message servers you can talk to are barcode scanners, scales, drives, or other intelligent devices.
EtherNet/IP uses the Common Industrial Protocol (CIP) The Common Industrial Protocol (CIP) is a media independent, connection-based, object-oriented protocol designed for automation applications. It encompasses a comprehensive set of communication services for automation applications: control, safety, synchronization, motion, configuration and information. It allows users to integrate these applications with enterprise-level Ethernet networks and the Internet., a strictly object-oriented protocol, at the upper layers. Each CIP object has attributes (data), services (commands) and behaviors (reactions to events). In the CIP Protocol, every network device represents itself as a series of objects. Each object is simply a grouping of the related data values in a device. Application Objects allow the user to organize the data that are specific to a particular kind of device. These objects define the data encapsulated by the device. They are specific to the device type and function.
These application layer objects are predefined for a large number of common device types. The same type of CIP devices must contain the same series of application objects. The series of application objects for a particular device type is known as the device profile. Objects not found in the profile for a device class are termed Vendor Specific. These objects are included by the vendor as additional features of the device. The CIP protocol provides access to these vendor extension objects in exactly the same way as either application or required objects. The Send EtherNet/IP Message instruction gains access to these regular pieces of data from the network to the device through an Object (or Class) Number, an Instance Number (Instances are the way of organizing the same kind of data ,e.g., sharing same attributes ), and optionally an Attribute Number.
|
|
|
|
Element References:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Device selects which EtherNet/IP Client devices to use to send the message. This instruction can use either EtherNet/IP Explicit Message Client devices or EtherNet/IP Implicit Scanner devices.
IP Address specifies the IP Address of the EtherNet/IP Server (Slave) to send the message to. If thel Device is an EtherNet/IP Implicit Adapter, the IP Address from the selected device is used and cannot be set in the instruction.
TCP Port Number is the port number of the EtherNet/IP Server (Slave) to send the message to. The default value of 44818 is typically the correct port number for EtherNet/IP protocol. This can be any constant value between 0 and 65535, or any readable numeric location containing a value in that range. If the Device is an EtherNet/IP Implicit Adapter, the Port Number from the selected device is used and cannot be set in the instruction. Path specifies the parameters for the request. The specific values needed for the fields will be provided by the manufacturer of the EtherNet/IP server that you are talking to.
Service specifies the operation to perform on the set of objects. Choose from the following list of predefined Services, or select Generic and enter the Service number.
Enable selects how this instruction will operate. Select from one of the following:
The On Success and On Error parameters specify what action to perform when this instruction completes. You do not have to use the same type of selection for both On Success and On Error.
If the Set Bit selection is used for either On Success or On Error, the specified BIT location will be SET OFF when the instruction is first enabled and will remain OFF until the instruction completes. Once complete, the appropriate Success or Error bit location ON. The specified Bit location is enabled with a SET (Latch) operation meaning that it will remain ON even if the input logic for the instruction goes OFF.
If the JMP to Stage selection is used for either On Success or On Error the target Stage must be in the same Program code-block as this instruction, you cannot specify a target Stage that exists in a different Program code-block. When the operation finishes, the target Stage will be enabled the same way as a standalone Jump to Stage (JMP) instruction would do it. The JMP to Stage option will only be available if this instruction is placed in a Program code-block.
On Success selects which of the following actions to perform if the operation is successful:
On Error selects which of
the following actions to perform if the operation is unsuccessful:
If either the On Success or On Error selections are set to JMP to Stage, Automatically create the SG box for any NEW stage number will be enabled which will automatically create any target stage that does not already exist.
On Error Counter - enable this option and select a DWord location to store the total number of times the EIPMSG instruction failed to complete. This can be any DWord location.
If an appropriate data block does not already exist, or if you want to create an additional data block for use in this instruction, then click the Create Data Block button button to open the following dialog where you can create a new data block of the required type.
The Use Request Service Data Buffer selection will be automatically enabled when any Set Attribute service is selected and automatically disabled when any Get Attribute service is selected. This buffer can be enabled any time the Generic Service is selected.
The Use Response Service Data Buffer selection will be automatically enabled when any Get Attribute service or any Generic service is selected and automatically disabled when any Set Attribute service is selected. This buffer can be enabled any time the Generic Service is selected.
Enable the General Status Code option to store the value returned from the EtherNet/IP Server in response to processing the Service Request; enter the numeric location to store the value. This can be any writable numeric location. This value could indicate success or be an error code. Consult the documentation for the EtherNet/IP Server for information on how to interpret General Status Code values.
Enable the Extended Status option to store any extended status value returned from the EtherNet/IP Server in response to processing the Service Request.
Note: if you add an EIPMSG instruction to your project, when you close the EIPMSG instruction editor you will see the following message box noting that this instruction requires Do-more Technology Version 1.4 or later. This means that you can add the instruction to the offline project, but you cannot download a project contain this instruction to a Do-more PLC that is running a firmware version older than v1.4.
|
|
|
|
Status Display:
The red triangle in the upper left corner of the status display indicates this is a Fully Asynchronous instruction.
|
|
|
|
See Also:EIPMSG - Send EtherNet/IP Message
DLRX - DirectLOGIC Network Read
DLWX - DirectLOGIC Network Write
PEERLINK - Share Data w / PLCs
PUBLISH - Translate from Do-more
SUBSCRIB - Translate to Do-more
|
|
|
|
|
|
|
|
Example:
|
|
|